#ifndef __I2C_H
#define __I2C_H

#include "fsl_common.h"

void i2cMasterInit(void);

uint32_t i2cMasterWriteByte(uint8_t slaveAddr,uint32_t subAddr,uint8_t value);
uint32_t i2cMasterReadByte(uint8_t slaveAddr,uint32_t subAddr,uint8_t value);
uint32_t i2cMasterWriteBuffer(uint8_t slaveAddr,uint32_t subAddr,uint8_t *buffer,uint32_t bytes);
uint32_t i2cMasterReadBuffer(uint8_t slaveAddr,uint32_t subAddr,uint8_t *buffer,uint32_t bytes);


#endif

